package cn.zyjw.mapper;

import cn.zyjw.domain.SysRolePrivilege;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface SysRolePrivilegeMapper extends BaseMapper<SysRolePrivilege> {

    @Select("select privilege_id from sys_role_privilege where role_id = #{roleId}")
    Set<Long> selectPrivilegeIdsByRoleId(Long roleId);
}